import axios from "../../utils/request";

export default {
  selectUserShip(data) {
    return axios({
      url: "/dev-api/relation/shipList",
      method: "get",
      params: data,
    });
  },

  addRelationShip(data) {
    return axios({
      url: "/dev-api/relation/insert",
      method: "post",
      data,
    });
  },

  getShipMrList(data) {
    return axios({
      url: "/dev-api/mr/mrShipList",
      method: "get",
      params: data,
    });
  },

  delShipMrList(data) {
    return axios({
      url: "/dev-api/relation/deleteShip",
      method: "delete",
      params: data,
    });
  },

  changeRelationShip(data) {
    return axios({
      url: "/dev-api/relation/updateShip",
      method: "put",
      data,
    });
  },
};
